package sojo.com.inverter.modbus;

import com.serotonin.modbus4j.BatchResults;

/**
 * @author cheng_hu
 * @description:
 * @date 2023-02-22 14:58:05
 */
public interface ModbusClient {

    short[] readDiscreteInputs(int slaveId, int offset, int numberOfBits);

    short[] readHoldingRegister(int slaveId, int offset, int numberOfBits);

    byte[] modbusTCP03(int slaveId, int offset, int numberOfBits);

    Number readHoldingRegister03(int slaveId, int offset, int dataType);

    BatchResults<Integer> batchRead(int num, int id, int slaveId, int offset, int dataType);

}
